package biz.microplus.information.bean;

import biz.microplus.information.common.DateUtil;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 信息状态审核日志数据模型
 */
@Entity
public class InformationReviewLogBean extends BaseBean {

    public InformationReviewLogBean(){}

    public InformationReviewLogBean(int informationId, String content, int userId){
        this.informationId = informationId;
        this.content = content;
        this.userId = userId;
        this.createdAt = DateUtil.getNowTimestamp();
    }

    /**
     * 标识
     */
    @Id
    private int id;
    /**
     * 信息ID
     */
    private int informationId;
    /**
     * 操作人ID
     */
    private int userId;
    /**
     * 信息内容
     */
    private String content;
    /**
     * 审核后状态
     */
    private String afterStatus;
    /**
     * 审核前状态
     */
    private String beforeStatus;
    /**
     * 备注
     */
    private String remark;
    /**
     * 删除时间戳
     */
    private int deletedAt;
    /**
     * 创建时间戳
     */
    private int createdAt;
    /**
     * 更新时间戳
     */
    private int updatedAt;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getInformationId() {
        return informationId;
    }

    public void setInformationId(int informationId) {
        this.informationId = informationId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAfterStatus() {
        return afterStatus;
    }

    public void setAfterStatus(String afterStatus) {
        this.afterStatus = afterStatus;
    }

    public String getBeforeStatus() {
        return beforeStatus;
    }

    public void setBeforeStatus(String beforeStatus) {
        this.beforeStatus = beforeStatus;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(int deletedAt) {
        this.deletedAt = deletedAt;
    }

    public int getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(int createdAt) {
        this.createdAt = createdAt;
    }

    public int getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(int updatedAt) {
        this.updatedAt = updatedAt;
    }
}